package com.example.commentserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="私聊")
public class Talk {
    @TableId
    @ApiModelProperty(value = "主键")
    private String id;
    @TableField("post_id")
    @ApiModelProperty(value = "发送方id")
    private String postId;
    @TableField("get_id")
    @ApiModelProperty(value = "接受方id")
    private String getId;
    @TableField("time")
    @ApiModelProperty(value = "创建时间")
    private Date time;
    @TableField("context")
    @ApiModelProperty(value = "内容")
    private String context;
    @TableField("readed")
    @ApiModelProperty(value = "阅读状态")
    private int readed;
    public Talk() {
    }
}